From: Juanma Barranquero Date: Thu, 6 May 2004 00:43:33 +0000 (+0000) Subject: (electric-help-command-loop): Check whether the last character is visible, X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~22697 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1f9134e7223e77f2eb24168e7306589de3d134df;p=emacs.git (electric-help-command-loop): Check whether the last character is visible, not (point-max). --- diff --git a/lisp/ehelp.el b/lisp/ehelp.el index 641faca557a..e80c129d3ea 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el @@ -215,7 +215,7 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit." ;beginning-of-buffer - otherwise pos-visible-in-window-p ;will yield a wrong result. (let ((min (pos-visible-in-window-p (point-min))) - (max (pos-visible-in-window-p (point-max)))) + (max (pos-visible-in-window-p (1- (point-max))))) (cond (isearch-mode 'noprompt) ((and min max) (cond (standard "Press q to exit, r to retain ")